package com.ssy.lingxi.platform.manage.controller.mobile;

import com.ssy.lingxi.common.controller.BaseController;
import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.platform.manage.model.response.CategoryResp;
import com.ssy.lingxi.platform.manage.service.mobile.IMemberCategoryMobileService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @menu mobile - 自营商家 - 分类
 * @author fhj
 * @version 2.0.0
 * @date 2021/10/25
 */
@Api(tags = "mobile - 自营商家 - 分类")
@RestController
@RequestMapping("/manage/mobile/memberCategoryMobile")
public class MemberCategoryMobileController extends BaseController {

    @Resource
    private IMemberCategoryMobileService memberCategoryMobileService;

    @ApiOperation(value = "所有")
    @GetMapping("/all")
    public Wrapper<List<CategoryResp>> all(Long memberId, Long roleId) {
        return memberCategoryMobileService.all(memberId, roleId);
    }
}
